/*
 * =====================================================================================
 *
 *       Filename:  tbr_monitor.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2019年05月08日 17时01分57秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */

#ifndef _TBR_MONITOR_H_
#define _TBR_MONITOR_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <syslog.h> 
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "util_debug.h"
#include "list.h"

#define SMALLER_NUMBER(a, b) ((a)<=(b)?(a):(b))

struct tbr_monitor_task {
    struct list_head list;
    int  len;
    unsigned char msg[16384];
};

int tbr_monitor_task_init();
void tbr_monitor_task_in(struct tbr_monitor_task *task);
struct tbr_monitor_task *tbr_monitor_task_out();
void tbr_monitor_task_free(struct tbr_monitor_task *task);

#endif


